package com.zgjkhis.modules.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author yzq
 * @Description 标签表
 * @Date 2021/9/3 9:54
 * @Param
 * @return
 **/
@Data
@TableName("his_label")
public class Label implements Serializable {
    @TableId
    private Long id;
    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message = "姓名不能为空")
    private String labelName;
    @ApiModelProperty(value = "姓名")
    private String labelPinyin;
    /** 创建时间 */
    @TableField(fill= FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "药房id")
    private String pharmacyId;
    @ApiModelProperty(value = "状态：0：生效，1：无效")
    private Integer status;

}
